/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-06-06 17:03:51
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-11 09:22:35
 * @FilePath: \ship-schedule-ui\src\pages\jcxm\widget-store.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * index页面的widget配置
 * @copyright 火星科技 mars2d.cn
 * @author 火星吴彦祖 2022-02-19
 */
import { defineAsyncComponent, markRaw } from "vue"
import { WidgetState } from "@mars/common/store/widget"
import { StoreOptions } from "vuex"

const store: StoreOptions<WidgetState> = {
  state: {
    widgets: [
      {
        component: markRaw(
          defineAsyncComponent(() => import(/* webpackChunkName: "visualize-ship" */ "@mars/widgets/demo/visualize-ship/index.vue"))
        ),
        name: "visualize-ship",
        autoDisable: true
      },
      {
        component: markRaw(
          defineAsyncComponent(() => import(/* webpackChunkName: "visualize-trace" */ "@mars/widgets/demo/visualize-trace/index.vue"))
        ),
        name: "visualize-trace",
        autoDisable: true
      },

      {
        component: markRaw(defineAsyncComponent(() => import(/* webpackChunkName: "query-poi" */ "@mars/widgets/basic/query-poi/index.vue"))),
        name: "query-poi",
        autoDisable: true
      },
      {
        component: markRaw(defineAsyncComponent(() => import(/* webpackChunkName: "toolbar" */ "@mars/widgets/basic/toolbar/index.vue"))),
        name: "toolbar",
        autoDisable: true
      },
      {
        component: markRaw(
          defineAsyncComponent(() => import(/* webpackChunkName: "manage-basemap" */ "@mars/widgets/basic/manage-basemap/index.vue"))
        ),
        name: "manage-basemap",
        group: "manage"
      },
      {
        component: markRaw(defineAsyncComponent(() => import(/* webpackChunkName: "manage-layers" */ "@mars/widgets/basic/manage-layers/index.vue"))),
        name: "manage-layers",
        group: "manage",
        disableOther: ["roamLine"]
      },
      {
        component: markRaw(defineAsyncComponent(() => import(/* webpackChunkName: "manage-layers" */ "@mars/widgets/basic/location-point/index.vue"))),
        name: "location-point",
        group: "manage",
        disableOther: ["roamLine"]
      }
    ],
    // openAtStart: ["statistic-ship", "statistic-cargo", "toolbar"]
    openAtStart: ["visualize-trace", "toolbar"]
  }
}

export default store
